<?php 
namespace App\Http\Views\Composers;
use View;
use Auth;
use App\Models\Address;
use App\Models\Payment;
use App\Models\Delivery;

class OrderinfoComposer {
    public function compose(View $view) {
    	$view->with('address', Auth::user()->addresses);
    	$view->with('payments', Payment::all());
    	$view->with('delivery', Delivery::all());
    } 
}